import { Entity, PrimaryGeneratedColumn, Column } from "typeorm";

/*
 * @Author: 黑白灰01 3193273703@qq.com
 * @Date: 2025-09-10 10:37:53
 * @LastEditors: 黑白灰01 3193273703@qq.com
 * @LastEditTime: 2025-09-10 10:43:37
 * @FilePath: /auth/src/user/entities/user.entity.ts
 * @Description: 用户实体类
 * 
 * Copyright (c) 2025 by ${git_name_email}, All Rights Reserved. 
 */
@Entity()
export class User {
    @PrimaryGeneratedColumn() // 自动生成自增主键
    id: number;

    @Column() // 定义为数据库列
    username: string;

    @Column() // 定义为数据库列
    password: string;

    @Column()
    Role: string;
}